import request from '@/utils/request'

// 查询设置保护期超时列表
export function listTime(query) {
  return request({
    url: '/manage/time/list',
    method: 'get',
    params: query
  })
}

// 查询设置保护期超时详细
export function getTime(userLevel) {
  return request({
    url: '/manage/time/' + userLevel,
    method: 'get'
  })
}

// 新增设置保护期超时
export function addTime(data) {
  return request({
    url: '/manage/time',
    method: 'post',
    data: data
  })
}

// 修改设置保护期超时
export function updateTime(data) {
  return request({
    url: '/manage/time',
    method: 'put',
    data: data
  })
}

// 删除设置保护期超时
export function delTime(userLevel) {
  return request({
    url: '/manage/time/' + userLevel,
    method: 'delete'
  })
}
